package com.mark.service;

import com.mark.common.ServerResponse;
import com.mark.exception.CartException;
import com.mark.vo.CartVo;

import java.util.List;

/**
 * Created by Mark on 2018/3/27.
 *
 */
public interface ICartService {
    ServerResponse<CartVo> getCartList(Integer userId) throws CartException;

    ServerResponse<CartVo>  addProductToCart(Integer userId, Integer productId, Integer count);

    ServerResponse<CartVo> updateCart(Integer userId, Integer productId, Integer count);

    ServerResponse<CartVo> deleteProduct(Integer userId, List<String> productList);

    ServerResponse<CartVo> selectOrUnSelect(Integer id, Integer productId, Integer checked);

    ServerResponse<Integer> getCartProductCount(Integer userId);
}
